package com.headStorm.proxy;


import java.lang.reflect.Proxy;

interface Shopping {
    void buy();
}

class Client implements Shopping {
    public void buy() {
        System.out.println("我想买这件商品");
    }
}

class StaticProxy implements Shopping {
    private Shopping shopping;

    public StaticProxy(Shopping shopping) {
        this.shopping = shopping;
    }

    public void buy() {
        System.out.println("降价促销，疯狂大甩卖了！");
        shopping.buy();
    }
}

public class StaticProxyTest {
    public static void main(String[] args) {
//        Client client = new Client();
//        StaticProxy service = new StaticProxy(client);
//        service.buy();

    }
}
